home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue3 / Games / xrick / !xrick / include / h / data < prev    next >
Text File  |  2004-06-24  |  945b  |  36 lines

  1. /*
  2.  * xrick/include/data.h
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. #ifndef _DATA_H
  15. #define _DATA_H
  16.  
  17. #include <stdio.h>
  18.  
  19. #include "system.h"
  20.  
  21. typedef void *data_file_t;
  22.  
  23. extern void data_setpath(char *);
  24. extern void data_closepath();
  25.  
  26. extern data_file_t *data_file_open(char *);
  27. extern int data_file_seek(data_file_t *file, long offset, int origin);
  28. extern int data_file_tell(data_file_t *file);
  29. extern int data_file_size(data_file_t *file);
  30. extern int data_file_read(data_file_t *, void *, size_t, size_t);
  31. extern void data_file_close(data_file_t *);
  32.  
  33. #endif
  34.  
  35. /* eof */
  36.